package ic.distribution.remote;

import IC.common.core.constant.ServiceNameConstants;
import IC.common.core.domain.R;
import IC.system.api.factory.RemoteUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;

@FeignClient(contextId = "RemoteTofaceservice", value = ServiceNameConstants.IC_VIDEOPATROL, fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteTofaceservie {

    @PostMapping("/defense-face")
    public R<String> defenseface(@RequestParam(value = "imageBase64") String imageBase64,@RequestParam(value = "subject") String subject);

    @DeleteMapping("/delrecognize-face")
    public R<?> deleteFace(@RequestParam(value = "subject") String subject, @RequestParam(value = "imageId") String imageId);

    @DeleteMapping("/delrecognize-module")
    public R<?> deleteFaceBySubject(@RequestParam(value = "subject") String subject);
}
